Minor fixes and download stellar spectrum #34
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now downloads stellar spectra from here: https://osf.io/8r2sw/, rather than using precomputed files in the spectral_files folder. This is important because the old files were outdated and not in a format consistent with what Mors produces. They were in the SOCRATES format with SI units and a specific header.
The spectra are now converted into the SOCRATES format by JANUS when they are inserted into the spectral file. This is done with
PrepareStellarSpectrum
in the same manner as in PROTEUS. The files produced bymors.SpectrumWrite
can then be parsed appropriately.As a result, the solar spectrum used by JANUS by default is slightly different to the previous one. The test reference values have been updated accordingly, but they only differ by a few decimal places.